package com.yinhd.study.designPatterns.chainOfResponsibility.process;

import org.springframework.util.StringUtils;

/**
 * @program: study
 * @description:
 * @Author: chengl
 * @create: 2022-01-26 11:08
 **/
public class VideoApprover extends  Approver{

    @Override
    public void deploy(Course course) {
        if (!StringUtils.isEmpty(course.getArticle())){
            System.out.println("VideoApprover审核通过");
            if(approver != null){
                approver.deploy(course);
            }
        }else {
            System.out.println("无视频， 审核不通过");
        }
    }
}
